<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	List<TblSiteFeedback> list = (List<TblSiteFeedback>)request.getAttribute("list");
	FeedBackForm form = (FeedBackForm)request.getAttribute("command");
%>
<div class="oaTable">
<table class="tableList">
	<thead>
		<tr>
			<td colspan="5" style="width: 100%;">
				<div class="FormTools">
					<div>
						<input id="name" type="text" name="name" class="search"
							placeholder="请输入姓名"
							value="<%=StringUtils.isNotBlank(form.getName())?form.getName():""%>" />					
						<input id="orderId" type="text" name="orderId" class="search"
							placeholder="请输入单号"
							value="<%=StringUtils.isNotBlank(form.getOrderId())?form.getOrderId():""%>" />					
						<input id="keywords" type="text" name="keywords" class="search"
							placeholder="请输入投诉内容"
							value="<%=StringUtils.isNotBlank(form.getContent())?form.getContent():""%>" />
						<input type="button" class="searchSubmit" value="搜索"
							onclick="javascript:XF.Site.searchFeedback()" />
					</div>


				</div>
			</td>
		</tr>
	</thead>
	<tbody>
		<tr id="tableHeader">
			<th style="width: 10%;">姓名</th>
			<th style="width: 43%;">投诉内容</th>
			<th style="width: 15%;">单号</th>
			<th style="width: 18%;">电话</th>
			<th style="width:14%;">投诉时间</th>
		</tr>
		<%
			if(!CollectionUtils.isEmpty(list)){
				for(TblSiteFeedback feedback:list){
					String id = EncrypTool.encode(feedback.getId()+"");
					%>
						<tr>
							<td><%=feedback.getName() %></td>
							<td><a name="toRead" href="javascript:XF.Site.feedbackDetail('<%=id%>')"><%=feedback.getContent() %></a></td>
							<td><%=null!=feedback.getOrderId()?feedback.getOrderId():"" %></td>
							<td><%=null!=feedback.getMobile()?feedback.getMobile():"" %></td>
							<td><%=null!=feedback.getAddtime()?DateFormatUtils.format(feedback.getAddtime().getTime(), "yyyy-MM-dd HH:mm:ss"):"" %></td>
						</tr>
					<%
				}
			}
		%>
	</tbody>

	<tfoot>
		<tr id="tableFooter">
			<td colspan="5">
				<div class="pagination">
					<monggoTag:pagination href="feedback_search"
						pageSize="<%=form.getPageSize()%>"
						totalRecord="<%=form.getTotalRecord() %>"
						currentPage="<%=form.getPageNum() %>">
					</monggoTag:pagination>
				</div>
			</td>
		</tr>
	</tfoot>
</table>
</div>
<script>
	$(function() {
		XF.Site.init();
		XF.Site.init_css();
	
	});
</script>
































